package com.xbmd.wiki.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xbmd.wiki.entity.Ebook;
import com.xbmd.wiki.service.EbookService;




/**
 * <p>
 * 电子书 前端控制器
 * </p>
 *
 * @author xbmd
 * @since 2025-10-27
 */
@RestController
@RequestMapping("/ebook")
public class EbookController {
    @Autowired
    private EbookService ebookService;
    
    // 查询全部电子书
    @GetMapping
    public List<Ebook> list() {
        return ebookService.list();
    }

}
